package filter;

import java.util.ArrayList;
import java.util.List;

public class CriteriaMale implements Criteria {


    @Override
    public List<Person> meetCriteria(List<Person> psersons) {
        List<Person> malelist = new ArrayList<>();
        for (Person person : psersons) {
            if (person.getGender().equalsIgnoreCase("MALE")) {
                malelist.add(person);
            }
        }
        return malelist;
    }
}
